﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Kokomo.PeInspector.Reflection
{
	/// <summary>
	/// Used to pass arguments to a member event.
	/// </summary>
	/// <seealso cref="CodeDocumentBuilder.MemberStart"/>
	/// <seealso cref="CodeDocumentBuilder.MemberEnd"/>
	public class MemberEventArgs : EventArgs
	{
		public MemberInfo Member { get; private set; }

		public MemberEventArgs(
			MemberInfo member
			)
		{
			if (member == null) throw new ArgumentNullException("member");
			this.Member = member;
		}
	}
}
